package com.neusoft.hifly.lock.constant;

/**
 * Redis连接方式。包含:
 * <p>
 * standalone-单节点部署方式
 * <p>
 * sentinel-哨兵部署方式
 * <p>
 * cluster-集群方式
 * <p>
 * masterslave-主从部署方式
 */
public enum RedisConnectionType {

	STANDALONE("standalone", "单节点部署方式"),

	SENTINEL("sentinel", "哨兵部署方式"),

	CLUSTER("cluster", "集群方式"),

	MASTERSLAVE("masterslave", "主从部署方式");

	private final String connectionType;

	private final String connectionDesc;

	private RedisConnectionType(String connectionType, String connectionDesc) {
		this.connectionType = connectionType;
		this.connectionDesc = connectionDesc;
	}

	public String getConnectionType() {
		return connectionType;
	}

	public String getConnectionDesc() {
		return connectionDesc;
	}

}
